package com.ynet.finmall.inmanage.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ImLogQuery {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer pageNo = 1;

    protected Integer startRow;

    protected Integer pageSize = 10;

    protected String fields;

    public ImLogQuery() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo=pageNo;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setStartRow(Integer startRow) {
        this.startRow=startRow;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setFields(String fields) {
        this.fields=fields;
    }

    public String getFields() {
        return fields;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLogIdIsNull() {
            addCriterion("log_id is null");
            return (Criteria) this;
        }

        public Criteria andLogIdIsNotNull() {
            addCriterion("log_id is not null");
            return (Criteria) this;
        }

        public Criteria andLogIdEqualTo(String value) {
            addCriterion("log_id =", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdNotEqualTo(String value) {
            addCriterion("log_id <>", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdGreaterThan(String value) {
            addCriterion("log_id >", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdGreaterThanOrEqualTo(String value) {
            addCriterion("log_id >=", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdLessThan(String value) {
            addCriterion("log_id <", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdLessThanOrEqualTo(String value) {
            addCriterion("log_id <=", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdLike(String value) {
            addCriterion("log_id like", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdNotLike(String value) {
            addCriterion("log_id not like", value, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdIn(List<String> values) {
            addCriterion("log_id in", values, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdNotIn(List<String> values) {
            addCriterion("log_id not in", values, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdBetween(String value1, String value2) {
            addCriterion("log_id between", value1, value2, "logId");
            return (Criteria) this;
        }

        public Criteria andLogIdNotBetween(String value1, String value2) {
            addCriterion("log_id not between", value1, value2, "logId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(String value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(String value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(String value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(String value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(String value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLike(String value) {
            addCriterion("user_id like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotLike(String value) {
            addCriterion("user_id not like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<String> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<String> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(String value1, String value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(String value1, String value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andLogResultIsNull() {
            addCriterion("log_result is null");
            return (Criteria) this;
        }

        public Criteria andLogResultIsNotNull() {
            addCriterion("log_result is not null");
            return (Criteria) this;
        }

        public Criteria andLogResultEqualTo(String value) {
            addCriterion("log_result =", value, "logResult");
            return (Criteria) this;
        }

        public Criteria andLogResultNotEqualTo(String value) {
            addCriterion("log_result <>", value, "logResult");
            return (Criteria) this;
        }

        public Criteria andLogResultGreaterThan(String value) {
            addCriterion("log_result >", value, "logResult");
            return (Criteria) this;
        }

        public Criteria andLogResultGreaterThanOrEqualTo(String value) {
            addCriterion("log_result >=", value, "logResult");
            return (Criteria) this;
        }

        public Criteria andLogResultLessThan(String value) {
            addCriterion("log_result <", value, "logResult");
            return (Criteria) this;
        }

        public Criteria andLogResultLessThanOrEqualTo(String value) {
            addCriterion("log_result <=", value, "logResult");
            return (Criteria) this;
        }

        public Criteria andLogResultLike(String value) {
            addCriterion("log_result like", value, "logResult");
            return (Criteria) this;
        }

        public Criteria andLogResultNotLike(String value) {
            addCriterion("log_result not like", value, "logResult");
            return (Criteria) this;
        }

        public Criteria andLogResultIn(List<String> values) {
            addCriterion("log_result in", values, "logResult");
            return (Criteria) this;
        }

        public Criteria andLogResultNotIn(List<String> values) {
            addCriterion("log_result not in", values, "logResult");
            return (Criteria) this;
        }

        public Criteria andLogResultBetween(String value1, String value2) {
            addCriterion("log_result between", value1, value2, "logResult");
            return (Criteria) this;
        }

        public Criteria andLogResultNotBetween(String value1, String value2) {
            addCriterion("log_result not between", value1, value2, "logResult");
            return (Criteria) this;
        }

        public Criteria andLogDescIsNull() {
            addCriterion("log_desc is null");
            return (Criteria) this;
        }

        public Criteria andLogDescIsNotNull() {
            addCriterion("log_desc is not null");
            return (Criteria) this;
        }

        public Criteria andLogDescEqualTo(String value) {
            addCriterion("log_desc =", value, "logDesc");
            return (Criteria) this;
        }

        public Criteria andLogDescNotEqualTo(String value) {
            addCriterion("log_desc <>", value, "logDesc");
            return (Criteria) this;
        }

        public Criteria andLogDescGreaterThan(String value) {
            addCriterion("log_desc >", value, "logDesc");
            return (Criteria) this;
        }

        public Criteria andLogDescGreaterThanOrEqualTo(String value) {
            addCriterion("log_desc >=", value, "logDesc");
            return (Criteria) this;
        }

        public Criteria andLogDescLessThan(String value) {
            addCriterion("log_desc <", value, "logDesc");
            return (Criteria) this;
        }

        public Criteria andLogDescLessThanOrEqualTo(String value) {
            addCriterion("log_desc <=", value, "logDesc");
            return (Criteria) this;
        }

        public Criteria andLogDescLike(String value) {
            addCriterion("log_desc like", value, "logDesc");
            return (Criteria) this;
        }

        public Criteria andLogDescNotLike(String value) {
            addCriterion("log_desc not like", value, "logDesc");
            return (Criteria) this;
        }

        public Criteria andLogDescIn(List<String> values) {
            addCriterion("log_desc in", values, "logDesc");
            return (Criteria) this;
        }

        public Criteria andLogDescNotIn(List<String> values) {
            addCriterion("log_desc not in", values, "logDesc");
            return (Criteria) this;
        }

        public Criteria andLogDescBetween(String value1, String value2) {
            addCriterion("log_desc between", value1, value2, "logDesc");
            return (Criteria) this;
        }

        public Criteria andLogDescNotBetween(String value1, String value2) {
            addCriterion("log_desc not between", value1, value2, "logDesc");
            return (Criteria) this;
        }

        public Criteria andLogInterfaceIsNull() {
            addCriterion("log_interface is null");
            return (Criteria) this;
        }

        public Criteria andLogInterfaceIsNotNull() {
            addCriterion("log_interface is not null");
            return (Criteria) this;
        }

        public Criteria andLogInterfaceEqualTo(String value) {
            addCriterion("log_interface =", value, "logInterface");
            return (Criteria) this;
        }

        public Criteria andLogInterfaceNotEqualTo(String value) {
            addCriterion("log_interface <>", value, "logInterface");
            return (Criteria) this;
        }

        public Criteria andLogInterfaceGreaterThan(String value) {
            addCriterion("log_interface >", value, "logInterface");
            return (Criteria) this;
        }

        public Criteria andLogInterfaceGreaterThanOrEqualTo(String value) {
            addCriterion("log_interface >=", value, "logInterface");
            return (Criteria) this;
        }

        public Criteria andLogInterfaceLessThan(String value) {
            addCriterion("log_interface <", value, "logInterface");
            return (Criteria) this;
        }

        public Criteria andLogInterfaceLessThanOrEqualTo(String value) {
            addCriterion("log_interface <=", value, "logInterface");
            return (Criteria) this;
        }

        public Criteria andLogInterfaceLike(String value) {
            addCriterion("log_interface like", value, "logInterface");
            return (Criteria) this;
        }

        public Criteria andLogInterfaceNotLike(String value) {
            addCriterion("log_interface not like", value, "logInterface");
            return (Criteria) this;
        }

        public Criteria andLogInterfaceIn(List<String> values) {
            addCriterion("log_interface in", values, "logInterface");
            return (Criteria) this;
        }

        public Criteria andLogInterfaceNotIn(List<String> values) {
            addCriterion("log_interface not in", values, "logInterface");
            return (Criteria) this;
        }

        public Criteria andLogInterfaceBetween(String value1, String value2) {
            addCriterion("log_interface between", value1, value2, "logInterface");
            return (Criteria) this;
        }

        public Criteria andLogInterfaceNotBetween(String value1, String value2) {
            addCriterion("log_interface not between", value1, value2, "logInterface");
            return (Criteria) this;
        }

        public Criteria andLogArgsIsNull() {
            addCriterion("log_args is null");
            return (Criteria) this;
        }

        public Criteria andLogArgsIsNotNull() {
            addCriterion("log_args is not null");
            return (Criteria) this;
        }

        public Criteria andLogArgsEqualTo(String value) {
            addCriterion("log_args =", value, "logArgs");
            return (Criteria) this;
        }

        public Criteria andLogArgsNotEqualTo(String value) {
            addCriterion("log_args <>", value, "logArgs");
            return (Criteria) this;
        }

        public Criteria andLogArgsGreaterThan(String value) {
            addCriterion("log_args >", value, "logArgs");
            return (Criteria) this;
        }

        public Criteria andLogArgsGreaterThanOrEqualTo(String value) {
            addCriterion("log_args >=", value, "logArgs");
            return (Criteria) this;
        }

        public Criteria andLogArgsLessThan(String value) {
            addCriterion("log_args <", value, "logArgs");
            return (Criteria) this;
        }

        public Criteria andLogArgsLessThanOrEqualTo(String value) {
            addCriterion("log_args <=", value, "logArgs");
            return (Criteria) this;
        }

        public Criteria andLogArgsLike(String value) {
            addCriterion("log_args like", value, "logArgs");
            return (Criteria) this;
        }

        public Criteria andLogArgsNotLike(String value) {
            addCriterion("log_args not like", value, "logArgs");
            return (Criteria) this;
        }

        public Criteria andLogArgsIn(List<String> values) {
            addCriterion("log_args in", values, "logArgs");
            return (Criteria) this;
        }

        public Criteria andLogArgsNotIn(List<String> values) {
            addCriterion("log_args not in", values, "logArgs");
            return (Criteria) this;
        }

        public Criteria andLogArgsBetween(String value1, String value2) {
            addCriterion("log_args between", value1, value2, "logArgs");
            return (Criteria) this;
        }

        public Criteria andLogArgsNotBetween(String value1, String value2) {
            addCriterion("log_args not between", value1, value2, "logArgs");
            return (Criteria) this;
        }

        public Criteria andLogTimeIsNull() {
            addCriterion("log_time is null");
            return (Criteria) this;
        }

        public Criteria andLogTimeIsNotNull() {
            addCriterion("log_time is not null");
            return (Criteria) this;
        }

        public Criteria andLogTimeEqualTo(Date value) {
            addCriterion("log_time =", value, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeNotEqualTo(Date value) {
            addCriterion("log_time <>", value, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeGreaterThan(Date value) {
            addCriterion("log_time >", value, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("log_time >=", value, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeLessThan(Date value) {
            addCriterion("log_time <", value, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeLessThanOrEqualTo(Date value) {
            addCriterion("log_time <=", value, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeIn(List<Date> values) {
            addCriterion("log_time in", values, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeNotIn(List<Date> values) {
            addCriterion("log_time not in", values, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeBetween(Date value1, Date value2) {
            addCriterion("log_time between", value1, value2, "logTime");
            return (Criteria) this;
        }

        public Criteria andLogTimeNotBetween(Date value1, Date value2) {
            addCriterion("log_time not between", value1, value2, "logTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}